home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power Programmierung 2
/
Power-Programmierung CD 2 (Tewi)(1994).iso
/
gnu
/
djgpp
/
src
/
libgplus.5
/
libgplus
/
test-ins
/
bm.cc
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1992-11-18
|
310 b
|
15 lines
#include <errno.h>
#include <stdlib.h>
#include <stdio.h>
extern int f();
int main()
{
// We (mis-)use errno supposedly to check that we got a good errno.h
// and libc. I don't quite buy it, but what the hell ... --Per
errno = f();
fprintf(stderr, "Return-code: %d (should be 1)\n", errno);
exit(0);
}